<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>最佳拍档</title>
    <meta name="keywords" content="最佳拍档">
    <meta name="description" content="最佳拍档">
    <link rel="stylesheet" type="text/css" th:href="@{/layui/css/layui.css}">
    <script th:src="@{/layui/layui.js}" src="/layui/layui.js"></script>
    <script th:src="@{/common/js/jquery-3.3.1.min.js}" src="/common/js/jquery-3.3.1.min.js"></script>
    <script th:src="@{/common/js/common.js}" src="/common/js/common.js"></script>
</head>
<body>
    <div id="result">

    </div>
</body>

<script type="text/javascript">
    let ruleNum= GetQueryString("ruleNum");
    if(isNotNull(ruleNum)){
        layui.use('layer', function() {
            let layer = layui.layer;
            let myMsg = layer.msg("加载中...",{
                icon:16,
                time:-1
            })
            $.ajax({
                type:'GET',
                url:'/rule/preview/'+ruleNum,
                success:function(req){
                    $("#result").html(req);
                    layer.close(myMsg);
                },
                error:function(e){
                    $("#result").html(e);
                    layer.close(myMsg);
                }
            })
        })
    }
</script>

</html>